﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MenuTree_Right.aspx.cs" Inherits="SysManage_MenuTree_Right" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <link href ="sysManage.CSS" type="text/css" rel="stylesheet" /> 
    <script language ="javascript" type="text/javascript" >
        //////////////////////////////////初始化信息开始////////////////////////////////////////////
var sSpanMsgHtml_add = "<font size=\"-1\" color=\"#0000FF\">请填写新加的子结点的相关信息...</font>";
var sSpanMsgHtml_ins = "<font size=\"-1\" color=\"#0000FF\">请填写前插的新结点的相关信息...</font>";
var sSpanMsgHtml_apd = "<font size=\"-1\" color=\"#0000FF\">请填写后插的新结点的相关信息...</font>";
var sSpanMsgHtml_del = "<font size=\"-1\" color=\"#FF0000\">你将删除当前的结点和其它与之相关的所有信息...</font>";
var sSpanMsgHtml_alt = "<font size=\"-1\" color=\"#FF00FF\">请修改当前结点的相关信息...</font>";
var sSpanAddHtml = "<input type=\"button\" style=\"width:73;height:24\"  value=\"添加子结点\" name=\"btnAdd\" onclick=\"operate('ADD')\"/>";
var sSpanInsHtml = "<input type=\"button\" style=\"width:73;height:24\"  value=\"前插新结点\" name=\"btnIns\" onclick=\"operate('INS')\"/>";
var sSpanApdHtml = "<input type=\"button\" style=\"width:73;height:24\"  value=\"后插新结点\" name=\"btnApd\" onclick=\"operate('APD')\"/>";
var sSpanAltHtml = "<input type=\"button\" style=\"width:73;height:24\"  value=\"修改本结点\" name=\"btnAlt\" onclick=\"operate('ALT')\"/>";
var sSpanDelHtml = "<input type=\"button\" style=\"width:73;height:24\" value=\"删除本结点\" name=\"btnDel\" onclick=\"operate('DEL')\"/>";
var sSpanOkHtml = "<input type=\"button\" style=\"width:42;height:24\"  value=\"确定\" name=\"btnOk\" onclick=\"okClicked()\"/>";
var sSpanCancelHtml ="<input type=\"button\" style=\"width:42;height:24\"  value=\"取消\" name=\"btnCancel\" onclick=\"cancelClicked()\"/>";

//是否允许删除含子结点的结点
var bDeleteLeafedAllowed = true;
//在type有目录和页面两个单选按钮可选时默认选择哪一个
var bPageRadioSelected = false;

//////////////////////////////////初始化信息结束////////////////////////////////////////////

//////////////////////////////////五按钮函数实现结束///////////////////////////////////////
/*  */
function operate(mod)
{
	setOperateMsg(mod);//调用相对应的信息
	parent.rightFrame.ctrlNodeInfoActionForm.hidMod.value = mod;//付值给hidMod,即指定当前的操作按钮
	setFormAfterOperate();
	initOperateBtnView();
	parent.rightFrame.spanError.innerHTML = "";
    setOKCancelBtnVisible(true);
}

/* 设置与操作对应的提示信息 */
function setOperateMsg(mod)
{
  switch(mod.toUpperCase())
  {
    case "ADD" :
      parent.rightFrame.spanMsg.innerHTML = sSpanMsgHtml_add;
      break;
    case "INS":
      parent.rightFrame.spanMsg.innerHTML = sSpanMsgHtml_ins;
      break;
    case "APD":
      parent.rightFrame.spanMsg.innerHTML = sSpanMsgHtml_apd;
      break;
    case "ALT":
      parent.rightFrame.spanMsg.innerHTML = sSpanMsgHtml_alt;
      break;
    case "DEL":
      parent.rightFrame.spanMsg.innerHTML = sSpanMsgHtml_del;
      break;
    default:
      parent.rightFrame.spanMsg.innerHTML = "";
  }
}

/* 点击“添加子结点”、“前插新结点”、“后插新结点”和“修改本结点”按钮后，设置右框架表单可见域*/
function setFormAfterOperate()
{
	var sMod = parent.rightFrame.ctrlNodeInfoActionForm.hidMod.value;
	if(sMod=="ADD" || sMod=="INS" || sMod=="APD" || sMod=="ALT")
	{
		setFormAttributesAfterOperate();
		setFormValuesAfterOperate();
	}
}

/* 点击“添加子结点”、“前插新结点”、“后插新结点”或“修改本结点”按钮后，设置右框架表单可见域的属性*/
function setFormAttributesAfterOperate()
{
	var sMod = parent.rightFrame.ctrlNodeInfoActionForm.hidMod.value;
	if(sMod=="ADD" || sMod=="INS" || sMod=="APD" || sMod=="ALT")
	{
		//code
		parent.rightFrame.ctrlNodeInfoActionForm.code.disabled = false;
		parent.rightFrame.ctrlNodeInfoActionForm.code.readOnly = true;

		//type 依据上下文情况，由隐藏域中mod和type的值判断各type单选按钮的disabled属性
		var sType = parent.rightFrame.ctrlNodeInfoActionForm.hidType.value;
		var sLeafed = parent.rightFrame.ctrlNodeInfoActionForm.hidLeafed.value;
		var sCode = parent.rightFrame.ctrlNodeInfoActionForm.hidCode.value;
		if( sMod=="ADD" || sMod=="INS" || sMod=="APD" || (sMod=="ALT" && (sType=="0"||(sType=="1"&&sLeafed=="0"&&sCode!="Men"))))
		{
			parent.rightFrame.ctrlNodeInfoActionForm.type[0].disabled = false;
			parent.rightFrame.ctrlNodeInfoActionForm.type[1].disabled = false;
		}
		else
		{//当为修改时,如果是目录,则目录不能改为页面(页面不可见),反之可以.
			parent.rightFrame.ctrlNodeInfoActionForm.type[0].disabled = false;
			parent.rightFrame.ctrlNodeInfoActionForm.type[1].disabled = true;
		}

		//homologID  在目录和页面两个单选按钮可选时默认选择哪一个 bPageRadioSelected = false
		if(!(((sMod=="ADD"||sMod=="INS"||sMod=="APD") && !bPageRadioSelected) || (sMod=="ALT" && sType=="1")))
			parent.rightFrame.ctrlNodeInfoActionForm.homologID.disabled = false;

		//label
		parent.rightFrame.ctrlNodeInfoActionForm.label.disabled = false;

		//当为修改时
		if(sMod=="ALT")
		{
			if(sType=="1")
			{//为目录时
				parent.rightFrame.ctrlNodeInfoActionForm.label.focus();
				parent.rightFrame.ctrlNodeInfoActionForm.label.select();
			}
			else
				parent.rightFrame.ctrlNodeInfoActionForm.homologID.focus();
		}
	}
}

/* 点击“添加子结点”、“前插新结点”或“后插新结点”按钮后，设置右框架表单可见域的值 */
function setFormValuesAfterOperate()
{
	var sMod = parent.rightFrame.ctrlNodeInfoActionForm.hidMod.value;	
	if(sMod=="ADD" || sMod=="INS" || sMod=="APD")
	{//“修改本结点”时不需要设置
	  //code
      switch(sMod.toUpperCase())
      {
			case "ADD" :
				parent.rightFrame.ctrlNodeInfoActionForm.code.value = parent.rightFrame.ctrlNodeInfoActionForm.hidNextSubCode.value;
				break;
			case "INS":
				parent.rightFrame.ctrlNodeInfoActionForm.code.value = parent.rightFrame.ctrlNodeInfoActionForm.hidCode.value;
				break;
			case "APD":
				parent.rightFrame.ctrlNodeInfoActionForm.code.value = parent.rightFrame.ctrlNodeInfoActionForm.hidNextCode.value;
				break;
		}
		//设置homologID和label的初始值
		if(bPageRadioSelected)
		{ //默认“页面”单选按钮被选中
			parent.rightFrame.ctrlNodeInfoActionForm.type[1].checked = true;		
			typeChanged(0);
		}
		else
		{ //默认“目录”单选按钮被选中
			parent.rightFrame.ctrlNodeInfoActionForm.type[0].checked = true;		
			typeChanged(1);
		}
	}
}

/*  */
function typeChanged(i)
{
	rdTypeChecked(i);
	if(i=="1")
	{
		parent.rightFrame.ctrlNodeInfoActionForm.label.value = "";
		parent.rightFrame.ctrlNodeInfoActionForm.type[0].blur();
		parent.rightFrame.ctrlNodeInfoActionForm.label.focus();
	}
	else
	{
		setLabel();
	    parent.rightFrame.ctrlNodeInfoActionForm.homologID.focus();
	}
}

/* 选中某个type单选按钮后的变化 */
function rdTypeChecked(i)
{
	if(i==1)
	{
		if(parent.rightFrame.ctrlNodeInfoActionForm.homologID.options[0].value!="0"){
			parent.rightFrame.ctrlNodeInfoActionForm.homologID.options.add(new Option("","0"),0);
		}
		parent.rightFrame.ctrlNodeInfoActionForm.homologID.value = "0";
		parent.rightFrame.ctrlNodeInfoActionForm.homologID.disabled = true;
	}
	else
	{
		if(parent.rightFrame.ctrlNodeInfoActionForm.homologID.length==0)
			parent.rightFrame.ctrlNodeInfoActionForm.homologID.options.add(new Option("","0"));
		if(parent.rightFrame.ctrlNodeInfoActionForm.homologID.length>1 && parent.rightFrame.ctrlNodeInfoActionForm.homologID.options[0].value=="0")
			parent.rightFrame.ctrlNodeInfoActionForm.homologID.options.remove(0);
		parent.rightFrame.ctrlNodeInfoActionForm.homologID.disabled = false;
	}
}

/*  */
function setLabel()
{
	var sText = parent.rightFrame.ctrlNodeInfoActionForm.homologID.options[parent.rightFrame.ctrlNodeInfoActionForm.homologID.selectedIndex].text;
	parent.rightFrame.ctrlNodeInfoActionForm.label.value = sText;
}

/*  */
function initOperateBtnView()
{
  parent.rightFrame.spanAdd.innerHTML = "";
  parent.rightFrame.spanIns.innerHTML = "";
  parent.rightFrame.spanApd.innerHTML = "";
  parent.rightFrame.spanDel.innerHTML = "";
  parent.rightFrame.spanAlt.innerHTML = "";
}

/* 设置“确定”“取消”按钮的可见性 */
function setOKCancelBtnVisible(bVisible)
{
  if(bVisible)
  {
    parent.rightFrame.spanOk.innerHTML = sSpanOkHtml;
    parent.rightFrame.spanCancel.innerHTML = sSpanCancelHtml;
  }
  else
  {
    parent.rightFrame.spanOk.innerHTML = "";
    parent.rightFrame.spanCancel.innerHTML = "";
  }
}

//////////////////////////////////五按钮函数实现结束///////////////////////////////////////

//////////////////////////////////取消按钮实现函数开始////////////////////////////////////

function cancelClicked()
{
	var code = parent.rightFrame.ctrlNodeInfoActionForm.hidCode.value;
	var type = parent.rightFrame.ctrlNodeInfoActionForm.hidType.value;
	var homologID = parent.rightFrame.ctrlNodeInfoActionForm.hidHomologID.value;
	var label = parent.rightFrame.ctrlNodeInfoActionForm.hidLabel.value;
	var leafed = parent.rightFrame.ctrlNodeInfoActionForm.hidLeafed.value;
	setViewMod(code,type,homologID,label,leafed);
}

/*  */
function setViewMod(code,type,homologID,label,leafed)
{
  setOperateMsg("");
  showCtrlNodeInfo(code,type,homologID,label);
  setAllDisabled();
  showOperateBtn(code,type,homologID,leafed);
  parent.rightFrame.spanError.innerHTML = "";
  setOKCancelBtnVisible(false);
  parent.rightFrame.ctrlNodeInfoActionForm.hidMod.value = "VIEW";
}

/* 在右框架表单可见域中显示当前结点的信息 */
function showCtrlNodeInfo(code,type,homologID,label)
{
  //code
  parent.rightFrame.ctrlNodeInfoActionForm.code.value = code;
  //type & homologID
  setTypeHomologIDValue(type,homologID);
  //label
  parent.rightFrame.ctrlNodeInfoActionForm.label.value = label;
}

/* 将右框架表单可见域的disabled属性的设置为true */
function setAllDisabled()
{  
  parent.rightFrame.ctrlNodeInfoActionForm.code.disabled=true;
  for(i=0;i<2;i++)
  {
    parent.rightFrame.ctrlNodeInfoActionForm.type[i].disabled=true;
  }
  parent.rightFrame.ctrlNodeInfoActionForm.homologID.disabled = true;
  parent.rightFrame.ctrlNodeInfoActionForm.label.disabled = true;
}

/* 依据实际情况显示有关操作按钮 */
function showOperateBtn(code,type,homologID,leafed)
{
  //添加子结点按钮
  if(type=="1")
    parent.rightFrame.spanAdd.innerHTML = sSpanAddHtml;
  else
    parent.rightFrame.spanAdd.innerHTML = "";
  //前插新结点按钮和后插新结点按钮
  if(code!="Men")
  {
    parent.rightFrame.spanIns.innerHTML = sSpanInsHtml;
    parent.rightFrame.spanApd.innerHTML = sSpanApdHtml;
  }
  else
  {
    parent.rightFrame.spanIns.innerHTML = "";
    parent.rightFrame.spanApd.innerHTML = "";
  }
  //删除本结点按钮
  if(leafed==0 || (leafed!=0 && bDeleteLeafedAllowed))
    parent.rightFrame.spanDel.innerHTML = sSpanDelHtml;
  else
    parent.rightFrame.spanDel.innerHTML = "";
  //修改本结点按钮
  parent.rightFrame.spanAlt.innerHTML = sSpanAltHtml;
}

/* 设置type和homologID的值 */
function setTypeHomologIDValue(type,homologID)
{
	for(i=0;i<3;i++)
	{
      if(parent.rightFrame.ctrlNodeInfoActionForm.type[i].value == type)
      {
          //type
          parent.rightFrame.ctrlNodeInfoActionForm.type[i].checked = true;
         //homologID下拉框对象随type的不同而不同
          eval("rdTypeChecked("+type+");");
          parent.rightFrame.ctrlNodeInfoActionForm.homologID.value = homologID;
          //alert(parent.rightFrame.ctrlNodeInfoActionForm.homologID.value);

          break;
      }
   }
}
//////////////////////////////////取消按钮实现函数结束////////////////////////////////////


//////////////////////////////////确定按钮实现函数开始////////////////////////////////////

function okClicked()
{
  var sMod = parent.rightFrame.ctrlNodeInfoActionForm.hidMod.value;
  if(sMod=="DEL")
  {
    var bSure=confirm("删除本结点将会引发其它数据的级联删除! 你确认要删除本结点吗？");
    if(!bSure) return;
  }
  else
  {
    /*此处可插入alert()客户端验证，也可放在 CtrlNodeInfoActionForm 的 validate 方法中
    区别：在 CtrlNodeInfoActionForm 中进行验证其提示信息可实现国际化和本地化。
	*/
	//label文本中间有空格会出错 ==>????		
		var sLabel = parent.rightFrame.ctrlNodeInfoActionForm.label.value;	
		sLabel = trim(sLabel);
		if(sLabel!="")
		{
			var regExp = new RegExp(" ");
			if(regExp.test(sLabel))
			{
				alert("结点标签文本中不能有空格！");
				return;
			}
		}
		
		if(sLabel=="")
		{
		    alert("结点标签不能为空！");
			return;						
		}

    //为提交出错后表单数据的回填而保存有关数据到隐藏域
		for(i=0;i<2;i++)
		{
			if(parent.rightFrame.ctrlNodeInfoActionForm.type[i].checked == true)
			{
				parent.rightFrame.ctrlNodeInfoActionForm.hidNewType.value = parent.rightFrame.ctrlNodeInfoActionForm.type[i].value;
		        parent.rightFrame.ctrlNodeInfoActionForm.hidNewHomologID.value = parent.rightFrame.ctrlNodeInfoActionForm.homologID.value;
				break;
			}
		}
	}

  parent.rightFrame.ctrlNodeInfoActionForm.btnOk.disabled = "true";
  parent.rightFrame.ctrlNodeInfoActionForm.btnCancel.disabled = "true";
  parent.rightFrame.ctrlNodeInfoActionForm.submit();
}

//////////////////////////////////确定按钮实现函数结束////////////////////////////////////

/////////////////////////////////////////start/////////////////////////////////////////////////
/**/
function homologIDChanged()
{
	setLabel();
	parent.rightFrame.ctrlNodeInfoActionForm.label.focus();
	parent.rightFrame.ctrlNodeInfoActionForm.label.select();
}

////////////////////////////////////////end/////////////////////////////////////////////////

////////////////////////////////////////start////////////////////////////////////////////////

/* 左框架函数sendCtrlNodeInfo */
function sendCtrlNodeInfo(code,type,homologID,label,parentCode,nextCode,nextSubCode,leafed)
{
  saveCtrlNodeInfo(code,type,homologID,label,parentCode,nextCode,nextSubCode,leafed);
  setViewMod(code,type,homologID,label,leafed);
}

/* 将当前结点的有关信息保存到右框架表单的隐藏域中 */
function saveCtrlNodeInfo(code,type,homologID,label,parentCode,nextCode,nextSubCode,leafed)
{
  parent.rightFrame.ctrlNodeInfoActionForm.hidCode.value = code;
  parent.rightFrame.ctrlNodeInfoActionForm.hidType.value = type;
  parent.rightFrame.ctrlNodeInfoActionForm.hidHomologID.value = homologID;
  parent.rightFrame.ctrlNodeInfoActionForm.hidLabel.value = label;
  parent.rightFrame.ctrlNodeInfoActionForm.hidParentCode.value = parentCode;
  parent.rightFrame.ctrlNodeInfoActionForm.hidNextCode.value = nextCode;
  parent.rightFrame.ctrlNodeInfoActionForm.hidNextSubCode.value = nextSubCode;
  parent.rightFrame.ctrlNodeInfoActionForm.hidLeafed.value = leafed;
}

///////////////////////////////////////end////////////////////////////////////////////////

///////////////////////////////////////start////////////////////////////////////////////////

/* 初始化右框架表单隐藏域的值 
function initHiddenValue(){
  parent.rightFrame.ctrlNodeInfoActionForm.hidMod.value="VIEW";
  parent.rightFrame.ctrlNodeInfoActionForm.hidCode.value="";
  parent.rightFrame.ctrlNodeInfoActionForm.hidType.value="";
  parent.rightFrame.ctrlNodeInfoActionForm.hidHomologID.value="";
  parent.rightFrame.ctrlNodeInfoActionForm.hidLabel.value="";
  parent.rightFrame.ctrlNodeInfoActionForm.hidParentCode.value = "";
  parent.rightFrame.ctrlNodeInfoActionForm.hidNextCode.value = "";
  parent.rightFrame.ctrlNodeInfoActionForm.hidNextSubCode.value = "";
}*/


/*  */
function initView()
{
  setOperateMsg("");
  setAllDisabled();
  initFormValue();
  //initHiddenValue();
  initOperateBtnView();
  parent.rightFrame.spanError.innerHTML = "";
  setOKCancelBtnVisible(false);
}

/////////////////////////////////////end//////////////////////////////////////////////////

/////////////////////////////////////start//////////////////////////////////////////////////

/*  */
function onloadView()
{
	if(parent.rightFrame.ctrlNodeInfoActionForm.hidMod.value=="")
	{ //页面第一次导入时的呈现		
		initFormValue();
		setAllDisabled();
	}
	else
	{
		var sMod = parent.rightFrame.ctrlNodeInfoActionForm.hidMod.value;
		if(parent.rightFrame.spanError.innerHTML == "")
		{ //右侧页面成功提交后的呈现
			initFormValue();
			setAllDisabled();
			var sParentCode = parent.rightFrame.ctrlNodeInfoActionForm.hidParentCode.value;
			var sOriginalCode = parent.rightFrame.ctrlNodeInfoActionForm.hidCode.value;
			var sCode = (sMod=="ADD")? sOriginalCode : sParentCode;
			eval("parent.leftFrame.location.href = \"MenuTree_left.aspx?selectedCode="+sCode+"\";");
		}
		else
		{ //右侧页面提交不成功，其呈现将根据操作的不同而不同
			setOperateMsg(sMod);			

			//表单数据回填
	        var sType = (sMod!="DEL")? parent.rightFrame.ctrlNodeInfoActionForm.hidNewType.value : parent.rightFrame.ctrlNodeInfoActionForm.hidType.value;
	        var iHomologID = (sMod!="DEL")? parent.rightFrame.ctrlNodeInfoActionForm.hidNewHomologID.value : parent.rightFrame.ctrlNodeInfoActionForm.hidHomologID.value;
	        setTypeHomologIDValue(sType,iHomologID);
		    if(sMod == "DEL")
		    {
				parent.rightFrame.ctrlNodeInfoActionForm.code.value = parent.rightFrame.ctrlNodeInfoActionForm.hidCode.value;
				parent.rightFrame.ctrlNodeInfoActionForm.label.value = parent.rightFrame.ctrlNodeInfoActionForm.hidLabel.value;
		    }
            if(sMod=="DEL")
		    {
			    setAllDisabled();
		    }
		    else
		   {
		       setFormAttributesAfterOperate();
		   }
		      initOperateBtnView();
			  setOKCancelBtnVisible(true);
		}	
	}
}

/*  */
function initFormValue()
{
	parent.rightFrame.ctrlNodeInfoActionForm.code.value = "";
	//parent.rightFrame.ctrlNodeInfoActionForm.type[0].checked = true;
	rdTypeChecked(1);
	parent.rightFrame.ctrlNodeInfoActionForm.label.value = "";
}
////////////////////////////////////////end///////////////////////////////////////////////

function leftTrim(sIn){
	var sOut = sIn;
	var regExp = new RegExp("^ ");
	while(regExp.test(sOut))
		sOut = sOut.replace(regExp, "");
	return sOut
}

function rightTrim(sIn){
	var sOut = sIn;
	var regExp = new RegExp(" $");
	while(regExp.test(sOut))
		sOut = sOut.replace(regExp, "");
	return sOut
}

function trim(sIn){
	return leftTrim(rightTrim(sIn));
}

function isContained(sComparand,sList,sDivision){
	if(sComparand==null||sComparand==""||sList==null||sList==""||sDivision==null||sDivision=="")
		return false;
  var sCorrectorList = sList;
	var nLength = sList.length;
  if(sCorrectorList.substr(nLength-1)!=sDivision)
		sCorrectorList = sList + sDivision;
 	while(sCorrectorList.length!=0){
    var index = sCorrectorList.indexOf(sDivision);
    var sMenber = sCorrectorList.substring(0,index);
    if(sMenber==sComparand) return true;
    sCorrectorList = sCorrectorList.substr(index+1);
  }
	return false;
}

    
    </script>
</head>
<body onload="onloadView();"  style =" background-image :url('../images/hit_bg.gif');">
    <form id="ctrlNodeInfoActionForm" method="post" runat="server">
			<table width="100%" style="text-align :left ">
				<tr>
					<td>
						<asp:label id="label1" Runat="server"></asp:label>
						<table width="300" style ="text-align :center ">
							<tr>
								<td align="center" colspan ="2"><span id="spanMsg" runat="server"></span></td>
							</tr>
							<tr>
								<td align="center">结点类型</td>
								<td align="left"><input id="List" onclick="typeChanged(1)" type="radio" value="1" name="type" runat="server" />
								目录 &nbsp;<input id="CPage" onclick="typeChanged(0)" type="radio" value="0" name="type" runat="server" />页面</td>
							</tr>
							<tr>
								<td align="center">页面名称</td>
								<td align ="left" ><select id="homologID" runat="server" datatextfield ="Labels" datavaluefield ="ID" onchange="homologIDChanged()"
										name="homologID"></select></td>
							</tr>
							<tr>
								<td align="center">结点标签</td>
								<td align ="left" ><input id="label" maxlength ="20" size="30" name="label" runat="server" /></td>
							</tr>
						</table>
						<input id="code" type="hidden" name="code" runat="server" />
						<input id="hidMod" type="hidden" name="hidMod" runat="server" />
						<input id="hidCode" type="hidden" name="hidMod" runat="server" />
						<input id="hidType" type="hidden" name="hidType" runat="server" />
						<input id="hidNewType" type="hidden" name="hidNewType" runat="server" />
						<input id="hidHomologID" type="hidden" name="hidHomologID" runat="server" />
						<input id="hidNewHomologID" type="hidden" name="hidNewHomologID" runat="server" />
						<input id="hidLabel" type="hidden" name="hidLabel" runat="server" />
						<input id="hidNewLabel" type="hidden" name="hidNewLabel" runat="server" />
						<input id="hidParentCode" type="hidden" name="hidParentCode" runat="server" />
						<input id="hidNextCode" type="hidden" name="hidNextCode" runat="server" />
						<input id="hidNextSubCode" type="hidden" name="hidNextSubCode" runat="server" />
						<input id="hidLeafed" type="hidden" name="hidLeafed" runat="server" />
						<table width="300" style="text-align :center ;" border="0">
							<tr>
								<td align="center" colspan ="7"><span id="spanError"></span></td>
							</tr>
							<tr>
								<td align="center"><span id="spanAdd"></span></td>
								<td align="center"><span id="spanIns"></span></td>
								<td align="center"><span id="spanApd"></span></td>
								<td align="center"><span id="spanAlt"></span></td>
								<td align="center"><span id="spanDel"></span></td>
								<td align="center"><span id="spanOk"></span></td>
								<td align="center"><span id="spanCancel"></span></td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
</body>
</html>
